<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="{eyou:global name='web_keywords' /}">
    <meta name="description" content="{eyou:global name='web_description' /}">
    <title>{eyou:global name='web_title' /}</title>
    {eyou:include file="import.htm" /}
</head>

<body>
    <div class="container">
        {eyou:include file="header.htm" /}
        <div class="row">
            <div class="col-12 col-lg-8">
                <!-- 面包屑导航 -->
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb bg-light">
                        {eyou:position style="crumb" /}
                    </ol>
                </nav>
                <!-- 图集列表 -->
                <div class="row row-cols-1 row-cols-md-2 grid" id="images">
                    {eyou:arclist tagid='images' row="1" }
                    <div class="col mb-4 grid-item">
                        <div class="card">
                            <img src="{$field.litpic}" class="card-img-top">
                            <div class="card-footer text-center text-truncate">
                                <small class="text-muted">{$field.title}</small>
                                <a href="{$field.arcurl}" class="card-link stretched-link"></a>
                            </div>
                        </div>
                    </div>
                    {/eyou:arclist}
                </div>
                <!-- 瀑布流加载 -->
                <nav aria-label="Page navigation">
                    <ul class="pagination justify-content-center">
                        <li class="page-item">
                            {eyou:arcpagelist tagid='images' pagesize='1' tips='Nothing'}
                            <a href="javascript:void(0);" {$field.onclick}
                                class="page-link bg-dark text-white px-4">Load&nbsp;&nbsp;More</a>
                            {/eyou:arcpagelist}
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="col-12 col-lg-4">
                {eyou:include file="sidebar.htm" /}
            </div>
        </div>
    </div>
    <!-- 返回顶部 -->
    <button type="button" class="to-top btn bg-dark text-white"><i class="bi bi-chevron-up"></i></button>
    <script>
        $(document).ready(function () {
            $('.to-top').toTop({
                autohide: true,
                offset: 420,
                speed: 400,
                position: true,
                right: 15,
                bottom: 30
            });
        });
        $('.container').imagesLoaded(function () {
            $('.grid').masonry({
                itemSelector: '.grid-item'
            });
        });
    </script>
</body>

</html>